const {createProxyMiddleware} = require('http-proxy-middleware');

module.exports = function(app) {
  app.use(
    createProxyMiddleware('/api', { 
      //目标地址
    target: 'http://localhost:3003/' 
  }));
  app.use(
    createProxyMiddleware('/mall', { 
      //目标地址
    target: 'https://t.flowerplus.cn/' 
  }));
};